package cn.ymxm;

import cn.ymxm.utils.Pusher;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/*
 * @Author Lzh
 * @Date 2022/8/24 21:07
 * @Description
 * @Version 1.0
 **/
@SpringBootApplication
@EnableScheduling
public class WechatPushApplication {

    public static void main(String[] args) {
        SpringApplication.run(WechatPushApplication.class, args);
    }

    @Scheduled(cron = "0 0 7 * * ?")
    public void goodMorning() {
        Pusher.push();
    }
}
